//
//  BKLRefreshHeader.swift
//  BKL_HealthProject
//
//  Created by hymiao on 2018/7/31.
//  Copyright © 2018年 yunjing. All rights reserved.
//

import UIKit

class BKLRefreshHeader: MJRefreshNormalHeader {

    class func refresh(_ block: @escaping () -> ()) -> BKLRefreshHeader {
        let header = BKLRefreshHeader()
        header.setTitle("下拉刷新", for: .idle)
        header.setTitle("松开刷新", for: .pulling)
        header.setTitle("正在刷新", for: .refreshing)
        header.lastUpdatedTimeLabel.isHidden = true
        header.refreshingBlock = block
        return header
    }

}
